{% block header %}

<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" href="{{ asset('bundles/css/style.css') }}" />
        <link rel="stylesheet" href="{{ asset('bundles/font/style.css') }}" />
        <link rel="stylesheet" href="{{ asset('bundles/css/bootstrap.min.css') }}" />
        <link rel="stylesheet" href="{{ asset('bundles/js/tooltip/tooltipster.css') }}" />
        <link rel="stylesheet" href="{{ asset('bundles/js/tooltip/themes/tooltipster-perso.css') }}" />
        <title>Gestion des quizz</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
        <script src="{{ asset('bundles/js/tooltip/jquery.tooltipster.min.js') }}"></script>

    </head>
    <body align="center">
    {% endblock %}

    {% block menu %}
        <menu class="col-md-2">
            <a href="{{path('readAllPromotion')}}">Gérer les promotions</a>
            <a href="{{path('readAllQuizz')}}">Gérer les Quizz</a>
            <a href="{{path('fos_user_security_logout')}}">Déconnexion</a>
        </menu>
  {% endblock %}
        <div id="body" class="col-md-9 {% block class_body %}rien{% endblock %}" >
            <div id="body-content">
                {% if error is defined %}
                    <script type="text/javascript">
                        $(document).ready(function(){
                            $("#error").slideDown(function(){
                                elem=$(this);
                                setTimeout(function(){
                                    elem.slideUp();
                                },2000);
                            });
                        });
                    </script>
                    <div style="color:white; background:red; width:100%; position:fixed; left:0; right:0; top:0; font-weight:bold; text-align:center; display:none;" id="error">{{error}}</div>
                {% endif %}
        {% block body %}
        {% endblock %}
            </div>
        </div>

    </body>
</html>